﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProjectVLIB_LAB01
{
    public partial class frmSupport : Form
    {
        public frmSupport()
        {
            InitializeComponent();
        }

        private void lnkWeb_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.niit.vn");
        }

        private void txtDienThoai_TextChanged(object sender, EventArgs e)
        {

        }

        private void txtDienThoai_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!Char.IsDigit(e.KeyChar) && !Char.IsControl(e.KeyChar))
            {
                e.Handled = true;
            }
        }

        private void btnSend_Click(object sender, EventArgs e)
        {
            MessageBox.Show(txtTen.Text + Environment.NewLine
                            + txtDienThoai.Text + Environment.NewLine
                            + txtEmail.Text + Environment.NewLine
                            + txtDonVi.Text + Environment.NewLine
                            + txtBoPhan.Text + Environment.NewLine
                            + txtChucVu.Text + Environment.NewLine
                            + txtNoiDung.Text,"Thông tin hỗ trợ",MessageBoxButtons.OKCancel);
        }
    }
}
